package com.xiao.train.business.controller;

import com.xiao.train.business.service.StationService;
import com.xiao.train.common.resp.CommonResp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("station")
public class StationController {

    @Autowired
    StationService stationService;

    @GetMapping("query-all")
    public CommonResp queryAll() {
        return new CommonResp(stationService.queryAll());
    }
}